package com.jt.mapper;

import com.jt.pojo.Emp;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface EmpMapper {

    @Select("select * from emp")
    List<Emp> findEmp();


    void addEmp(Emp emp);

    void updateEmp(Emp emp);

    @Delete("delete from emp where emp_id=#{empId}")
    void deleteEmp(Integer empId);

//    @Select("select * from emp where emp_id=#{empId}")
//    void findEmpById(Integer empId);
}
